<form action="/" method="post">
	<label for="frasesize">Quantas frases?</label> <input type="text" id="frasesize" name="frasesize" />
	<input type="submit" value="ok" />
</form>

	<p>
	
	<?php 
	$p = 0;
	foreach ($this->frases as $frase): 	
		echo $frase->frase ." "; 
		$p += strlen($frase->frase);
		if($p > 300) {
			echo "</p><p>";
			$p = 0;
		}
	endforeach; ?>
	
	</p>
